<?php
error_reporting(0);
session_start();

if (!isset($_SESSION["email"])) {
    include "includes/accessDeniedInclude.php";
}

include_once "src/model/Consultant.php";
include_once "src/controller/regmanagement/AccountManager.php";
include_once "src/controller/regmanagement/MiscellaneousManager.php";

try {
    $user = AccountManager::getConsultant($_SESSION["email"]);

    /*
    $isUserProfileComplete = false;

    if ((strlen($user->getFirstName()) > 0) && (strlen($user->getLastName()) > 0) &&
        (strlen($user->getCompanyName()) > 0) && (strlen($user->getMailingAddress()) > 0) &&
        (strlen($user->getMailingCity()) > 0) && ($user->getMailingStateId() > 0) &&
        ($user->getMailingZipCode() > 0) &&
        (strlen($user->getTelephone()) > 0) && (strlen($user->getEmail()) > 0) &&
        (($user->getK12ClienteleIndicator() > 0) || ($user->getHigherEducationClienteleIndicator() > 0)) &&
        (strlen($user->getBackgroundDescription()) > 0) && (strlen($user->getEducationDescription()) > 0) &&
        (strlen($user->getExperienceDescription()) > 0) && (($user->getComplaintIndicator() > 0) ||
        ($user->getPendingLitigationIndicator() > 0) ||
        ($user->getNoneIndicator() > 0)) && (count($user->getServices()) > 0)) {
        $isUserProfileComplete = true;
    }
    */

    $isProfilePage = true;

} catch (Exception $e) {
    echo $e->getMessage();
}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Safety & Security Consultant Registry of Texas</title>
        <style type="text/css">
            @import "js/dojo/dojox/image/resources/image.css";
            @import "js/dojo/dijit/themes/tundra/tundra.css";
            @import "js/dojo/dojox/grid/resources/Grid.css";
            @import "js/dojo/dojox/grid/resources/tundraGrid.css";
        </style>
        <link href="styles/default.css"
              rel="stylesheet"
              type="text/css"
              media="all">
        <script src="js/dojo/dojo/dojo.js"
                type="text/javascript"
                djConfig="parseOnLoad:true">
        </script>
        <script src="js/default.js" type="text/javascript"></script>
        <script src="js/masks.js" type="text/javascript"></script>
        <script type="text/javascript">
            dojo.require("dojo.parser");
            dojo.require("dijit.layout.AccordionContainer");
            dojo.require("dijit.dijit");
            dojo.require("dojox.grid.DataGrid");
            dojo.require("dojo.data.ItemFileWriteStore");
            dojo.require("dijit.form.ValidationTextBox");
            dojo.require("dijit.form.Button");
            dojo.require("dijit.Dialog");
            dojo.require("dijit.form.CheckBox");
            dojo.require("dijit.ProgressBar");
            dojo.require("dijit.form.Form");
            dojo.require("dijit.form.Textarea");
            dojo.require("dijit.form.FilteringSelect");
            dojo.require("dojo.data.ItemFileWriteStore");
            dojo.require("dijit.form.NumberTextBox");
            dojo.require("dijit.Tooltip");

            var consultantServicesProvidedStore;
            var browserDiffTopBar = 0;
            var browserDiffLeftBox = 0;

            dojo.addOnLoad(function () {

                browserDiffTopBar = 235;
                browserDiffLeftBox = 378;
                var browser = navigator.appName;
                if (browser == "Microsoft Internet Explorer") {
                    browserDiffTopBar = 242;
                    browserDiffLeftBox = 385;
                }

                var servicesProvidedStore = new dojo.data.ItemFileReadStore({
                    url: "jsonGenerateServicesProvided.php"
                });

                var filteringSelect = new dijit.form.FilteringSelect({
                    id: "serviceId",
                    name: "serviceId",
                    store: servicesProvidedStore,
                    searchAttr: "service",
                    style:"width:700px",
                    autocomplete:false,
                    required:false,
                    pageSize:"15",
                    onChange: manageServingSince
                },
                "servicesProvidedSelectArea");

                oStringMask = new Mask("(###) ###-####");
                oStringMask.attach(dojo.byId("telephone"));

                oStringMask = new Mask("(###) ###-####");
                oStringMask.attach(dojo.byId("cellphone"));

                oStringMask = new Mask("#####");
                oStringMask.attach(dojo.byId("physicalZipCode"));

                oStringMask = new Mask("#####");
                oStringMask.attach(dojo.byId("mailingZipCode"));
                
                oStringMask = new Mask("####");
                oStringMask.attach(dojo.byId("servingSinceYear"));

                window.onscroll = manageUserProfileFormStatus;

                manageNoneIndicator();

                verifyBackgroundDescription();
                verifyEducationDescription();
                verifyExperienceDescription();
                verifyServicesOfferedDescription();

                refreshUserInformationLeftArea();

                dojo.connect(dijit.byId('updateUserProfileDialog'), 'hide', function () {
                    if (dojo.byId("currentProfileSubmittedIndicator").value == 1) {
                        dijit.byId("tempProfileSubmittedIndicator").attr("checked", true);
                        dojo.byId("profileSubmittedIndicator").value = 1;
                    } else {
                        dijit.byId("tempProfileSubmittedIndicator").attr("checked", false);
                        dojo.byId("profileSubmittedIndicator").value = 0;
                    }
                    dojo.byId("updateUserProfileFormStatusMessage0").innerHTML = "";
                    dojo.byId("updateUserProfileFormStatusMessage1").innerHTML = "";
                    dojo.byId("updateUserProfileFormStatusMessage2").innerHTML = "";

                    document.getElementById("updateUserProfileFormStatusMessage0").setAttribute("class", "");
                    document.getElementById("updateUserProfileFormStatusMessage0").setAttribute("className", "");
                    document.getElementById("updateUserProfileFormStatusMessage1").setAttribute("class", "");
                    document.getElementById("updateUserProfileFormStatusMessage1").setAttribute("className", "");
                    document.getElementById("updateUserProfileFormStatusMessage2").setAttribute("class", "");
                    document.getElementById("updateUserProfileFormStatusMessage2").setAttribute("className", "");

                    document.body.style.overflow = "";
                });

                dojo.connect(dijit.byId('defineServiceCategoriesDialog'), 'hide', function () {
                    document.body.style.overflow = "";
                });

                dojo.connect(dijit.byId('manageProfileFAQsDialog'), 'hide', function () {
                    document.body.style.overflow = "";
                });

                dojo.connect(dijit.byId('consultantDetailInformationDialog'), 'hide', function () {
                    document.body.style.overflow = "";
                });

                dojo.connect(dijit.byId('suggestServiceCategorieToBeAddedDialog'), 'hide', function () {
                    document.body.style.overflow = "";
                    document.getElementById("suggestServiceCategorieToBeAddedFormStatusMessage").setAttribute("class", "");
                    document.getElementById("suggestServiceCategorieToBeAddedFormStatusMessage").setAttribute("className", "");
                    dojo.byId("suggestServiceCategorieToBeAddedFormStatusMessage").innerHTML = "";
                    dijit.byId("suggestServiceCategorieToBeAddedForm").reset();
                });

                //var bar = dojo.byId("userAccountProgress");
                //dojo.query(".dijitProgressBarTile", bar).addClass("anim");

            });

            function manageUserProfileFormStatus () {
                var moveTopBar = "0";
                if (document.body.scrollTop > browserDiffTopBar) {
                    moveTopBar = document.body.scrollTop - browserDiffTopBar;
                }
                document.getElementById("userProfileFormStatus").style.top = moveTopBar+"px";


                var moveLeftBox = "0";
                if (document.body.scrollTop > browserDiffLeftBox) {
                    moveLeftBox = document.body.scrollTop - browserDiffLeftBox;
                }
                document.getElementById("userInformationLeftBarArea").style.top = moveLeftBox+"px";
            }
            /*
            function refreshUserInformationLeftArea () {
                
                var fadeOut = dojo.fadeOut({
                    node: "userInformationLeftBarArea",
                    duration: 1000
                });
                
                var fadeIn = dojo.fadeIn({
                    node: "userInformationLeftBarArea",
                    duration: 2000
                });

                dojo.fx.chain([fadeOut, fadeIn]).play();
            }
            */
        </script> 
    </head>
    <body class="tundra">

        <span dojoType="dojo.data.ItemFileWriteStore"
              jsId="consultantServicesProvidedStore"
              url="ajaxConsultantServicesProvidedStore.php?email=<?php echo $_SESSION["email"]; ?>&uniqueId=<?php echo date("dmYHis"); ?>">
        </span>

        <?php
            include "includes/defineServiceCategoriesInclude.php";
            include "includes/manageProfileFAQsInclude.php";
        ?>

        <div dojoType="dijit.Dialog"
             id="updateUserProfileDialog"
             title="Safety & Security Consultant Registry of Texas"
             style="display:none;">
            <table border="0" cellpadding="0" cellspacing="0" width="550" height="300">
                <tbody>
                    <tr>
                        <td style="width:30px;background-image:url('images/dialogBg.png');background-repeat:repeat-y;"></td>
                        <td align="center"
                            valign="top"
                            id="updateUserProfileDialogArea"
                            style="padding-top:10px;padding-right:10px;">
                            <?php include "includes/userProfileUpdateFormInclude.php"; ?>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div dojoType="dijit.Dialog"
             id="consultantDetailInformationDialog"
             title="Safety & Security Consultant Registry of Texas"
             style="display:none;width:750px;">
            <table border="0"
                   cellpadding="0"
                   cellspacing="0"
                   width="750"
                   height="400px;">
                <tbody>
                    <tr>
                        <td style="width:30px;background-image:url('images/dialogBg.png');background-repeat:repeat-y;"></td>
                        <td align="center"
                            valign="top"
                            id="consultantDetailInformationDialogArea"
                            style="background-image:url('images/loaders/bigLoader.gif');background-repeat:no-repeat;background-position:center;">

                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div dojoType="dijit.Dialog"
             id="suggestServiceCategorieToBeAddedDialog"
             title="Safety & Security Consultant Registry of Texas"
             style="display:none;">
            <table border="0" cellpadding="0" cellspacing="0" width="500" height="300">
                <tbody>
                    <tr>
                        <td style="width:30px;background-image:url('images/dialogBg.png');background-repeat:repeat-y;"></td>
                        <td align="center"
                            valign="top"
                            id="suggestServiceCategorieToBeAddedDialogArea"
                            style="padding-top:10px;padding-right:10px;">
                            <?php include "includes/suggestServiceCategorieToBeAddedFormInclude.php"; ?>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <table class="main">
            <thead>
                <tr class="mainHeader">
                    <th align="center">
                        <?php include "includes/topMenuInclude.php"; ?>
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td align="center" valign="top">
                        <table class="mainBody">
                            <tbody>
                                <tr style="height:15px;">
                                    <td style="width:175px;"></td>
                                    <td style="width:795px;"></td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <?php include "includes/leftBarInclude.php"; ?>
                                    </td>
                                    <td valign="top" style="padding-left:20px;">
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td class="pageMainTitle">
                                                        User Profile
                                                        <br />
                                                        <span style="font-size:10px;">
                                                            The information provided in your profile will be made available to the
                                                            public as a resource for finding safety and security consulting services
                                                            in the state of Texas. Please verify all of the information is true and
                                                            correct before publishing.
                                                        </span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height:10px;"></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div id="userProfileFormStatus"
                                                             class="userProfileFormStandardMessage"
                                                             style="float:left;width:100%;">
                                                            <div style="float:left;width:100%;">
                                                                <div id="userProfileFormStatusMessage"
                                                                     style="float:left;padding-top:7px;text-align:left;font-family:Verdana;font-size:12px;font-weight:bold;padding-left:5px;width:610px;">

                                                                </div>
                                                                <div style="float:left;width:145px;">
                                                                    <div style="float:left;width:25px;">
                                                                        <a href="javascript:showManageProfileFAQsDialog();">
                                                                            <img src="images/icons/faqsIcon.png"
                                                                                 id="faqsToolTipIcon"
                                                                                 alt="faqsIcon"
                                                                                 style="border:none;" />
                                                                        </a>
                                                                        <div id="faqsToolTip"
                                                                             dojoType="dijit.Tooltip"
                                                                             connectId="faqsToolTipIcon"
                                                                             style="display:none;">
                                                                            FAQ's
                                                                        </div>
                                                                    </div>
                                                                    <div style="float:right;width:120px;">
                                                                        <button dojoType=dijit.form.Button
                                                                                type="button"
                                                                                name="submitUserProfileForm2"
                                                                                id="submitUserProfileForm2"
                                                                                iconClass="saveIcon"
                                                                                onclick="startUpdateUserProfileProcess()">
                                                                            Save Profile
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;border:1px solid #AAAAAA;background-color:#EEEEEE;">
                                                        <form  dojoType="dijit.form.Form"
                                                               name="userProfileForm"
                                                               id="userProfileForm"
                                                               method="post"
                                                               action="">
                                                            <input type="hidden" 
                                                                   id="consultantId"
                                                                   name="consultantId"
                                                                   value="<?php echo $user->getConsultantId();?>" />
                                                            <input type="hidden"
                                                                   id="accountFirstName"
                                                                   name="accountFirstName"
                                                                   value="<?php echo $user->getFirstName();?>" />
                                                            <input type="hidden"
                                                                   id="accountLastName"
                                                                   name="accountLastName"
                                                                   value="<?php echo $user->getLastName();?>" />
                                                            <input type="hidden"
                                                                   id="accountEmail"
                                                                   name="accountEmail"
                                                                   value="<?php echo $user->getEmail();?>" />
                                                            <table border="0" class="userProfileTable">
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;"></td>
                                                                        <td id="basicInformationLabel"
                                                                            style="vertical-align:top;">
                                                                            Basic Information:
                                                                            <a href="javascript:profileNameSameAsOnAccount();" style="color:#666666;font-size:9px;font-weight:normal;">
                                                                                (Same First Name and Last Name as Account Settings)
                                                                            </a>
                                                                        </td>
                                                                        <td style="padding-top:1px;padding-left:0px;"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-bottom:10px;vertical-align:top;padding-left:0px;padding:10px 10px 10px 10px;border:1px solid #AAAAAA;">
                                                                            <table border="0" cellpadding="0" cellspacing="0" style="font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="padding-right:3px;vertical-align:top;text-align:right;"><span class="requiredSign">*</span></td>
                                                                                        <td id="firstNameLabel"
                                                                                            style="padding-bottom:2px;padding-top:0px;">
                                                                                            First Name:
                                                                                        </td>
                                                                                        <td rowspan="2" style="padding-left:10px;padding-right:3px;vertical-align:top;text-align:right;"><span class="requiredSign">*</span></td>
                                                                                        <td colspan="2"
                                                                                            id="lastNameLabel"
                                                                                            style="padding-bottom:2px;padding-top:0px;">
                                                                                            Last Name:
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:140px;"
                                                                                                   type="text"
                                                                                                   name="firstName"
                                                                                                   id="firstName"
                                                                                                   value="<?php echo $user->getProfileFirstName();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z\.\-\,\' ]+"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:142px;"
                                                                                                   type="text"
                                                                                                   name="lastName"
                                                                                                   id="lastName"
                                                                                                   value="<?php echo $user->getProfileLastName();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z\.\-\,\' ]+"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                        <td style="padding-left:10px;padding-bottom:0px;padding-top:0px;white-space:nowrap;">
                                                                                            
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="5"
                                                                                            style="font-weight:normal;padding-left:5px;padding-bottom:10px;padding-top:5px;font-size:9px;">
                                                                                            Note: Both First Name and Last Name will be displayed on your public profile.
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="padding-right:3px;vertical-align:top;text-align:right;"><span class="requiredSign">*</span></td>
                                                                                        <td id="companyNameLabel"
                                                                                            colspan="4"
                                                                                            style="padding-bottom:2px;padding-top:0px;">
                                                                                            Name of Company:
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="5"
                                                                                            style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:400px;"
                                                                                                   type="text"
                                                                                                   name="companyName"
                                                                                                   id="companyName"
                                                                                                   value="<?php echo $user->getCompanyName();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z0-9\.\-\#\_\'\,\;\& ]+"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;padding-top:10px;"></td>
                                                                        <td id="mailingAddressLabel"
                                                                            style="vertical-align:top;padding-top:10px;">
                                                                            Mailing Address:
                                                                        </td>
                                                                        <td style="padding-top:1px;padding-left:0px;padding-top:10px;"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-bottom:10px;vertical-align:top;padding-left:0px;padding:10px 10px 10px 10px;border:1px solid #AAAAAA;">
                                                                            <table border="0"
                                                                                   cellpadding="0"
                                                                                   cellspacing="0"
                                                                                   style="font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="vertical-align:top;"><span class="requiredSign">*</span></td>
                                                                                        <td id="mailingStreetLabel"
                                                                                            colspan="5"
                                                                                            style="padding-bottom:2px;padding-top:0px;padding-left:3px;font-weight:normal;">Street:</td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="5" style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:300px;"
                                                                                                   type="text"
                                                                                                   name="mailingAddress"
                                                                                                   id="mailingAddress"
                                                                                                   value="<?php echo $user->getMailingAddress();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z0-9\.\-\#\_\'\,\;\:\\\/\& ]+"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="vertical-align:top;padding-top:3px;"><span class="requiredSign">*</span></td>
                                                                                        <td id="mailingCityLabel"
                                                                                            style="padding-bottom:2px;padding-top:3px;padding-left:3px;font-weight:normal;">
                                                                                            City:
                                                                                        </td>
                                                                                        <td rowspan="2" style="width:10px;"></td>
                                                                                        <td rowspan="2" style="vertical-align:top;padding-top:3px;"><span class="requiredSign">*</span></td>
                                                                                        <td id="mailingStateIdLabel"
                                                                                            style="padding-bottom:2px;padding-top:3px;padding-left:3px;font-weight:normal;">
                                                                                            State:
                                                                                        </td>
                                                                                        <td rowspan="2" style="width:10px;"></td>
                                                                                        <td rowspan="2" style="vertical-align:top;padding-top:3px;"><span class="requiredSign">*</span></td>
                                                                                        <td id="mailingZipCodeLabel"
                                                                                            style="padding-bottom:2px;padding-top:3px;padding-left:3px;font-weight:normal;">
                                                                                            Zip Code:
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:300px;"
                                                                                                   type="text"
                                                                                                   name="mailingCity"
                                                                                                   id="mailingCity"
                                                                                                   value="<?php echo $user->getMailingCity();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z\.\-\,\' ]+"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <select style="width:70px"
                                                                                                    dojoType="dijit.form.FilteringSelect"
                                                                                                    name="mailingStateId"
                                                                                                    id="mailingStateId"
                                                                                                    autocomplete="false"
                                                                                                    required="false"
                                                                                                    pageSize="15"
                                                                                                    value="<?php echo ($user->getMailingStateId() == "") ? "1000" : $user->getMailingStateId();?>">
                                                                                                    <?php
                                                                                                    $states = MiscellaneousManager::getStates();
                                                                                                    for ($i = 0 ; $i < count($states) ; $i++) {
                                                                                                        $state = $states[$i];
                                                                                                    ?>
                                                                                                        <option value="<?php echo $state->getStateId(); ?>"><?php echo $state->getStateName(); ?></option>
                                                                                                    <?php
                                                                                                    }
                                                                                                    ?>
                                                                                            </select>
                                                                                        </td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:70px;"
                                                                                                   type="text"
                                                                                                   name="mailingZipCode"
                                                                                                   id="mailingZipCode"
                                                                                                   value="<?php echo (($user->getMailingZipCode() == "0")) ? "00000" : $user->getMailingZipCode(); ?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[0-9][0-9][0-9][0-9][0-9]"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="height:10px;"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;"></td>
                                                                        <td style="vertical-align:top;">
                                                                            Physical Address:
                                                                            <a href="javascript:physicalAddressSameAsMailingAddress();" style="color:#666666;font-size:9px;font-weight:normal;">(Same as Mailing Address)</a>
                                                                        </td>
                                                                        <td style="padding-top:1px;padding-left:0px;"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-bottom:10px;vertical-align:top;padding-left:0px;padding:10px 10px 10px 10px;border:1px solid #AAAAAA;">
                                                                            <table border="0" cellpadding="0" cellspacing="0" style="font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td colspan="5" style="padding-bottom:0px;padding-top:0px;font-weight:normal;">Street:</td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="5" style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:300px;"
                                                                                                   type="text"
                                                                                                   name="physicalAddress"
                                                                                                   id="physicalAddress"
                                                                                                   value="<?php echo $user->getPhysicalAddress();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z0-9\.\-\#\_\'\,\;\:\\\/\& ]+"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:0px;padding-top:3px;font-weight:normal;">City:</td>
                                                                                        <td rowspan="2" style="width:10px;"></td>
                                                                                        <td style="padding-bottom:0px;padding-top:3px;font-weight:normal;">State:</td>
                                                                                        <td rowspan="2" style="width:10px;"></td>
                                                                                        <td style="padding-bottom:0px;padding-top:3px;font-weight:normal;">Zip Code:</td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:300px;"
                                                                                                   type="text"
                                                                                                   name="physicalCity"
                                                                                                   id="physicalCity"
                                                                                                   value="<?php echo $user->getPhysicalCity();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z\.\-\,\' ]+"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <select style="width:70px"
                                                                                                    dojoType="dijit.form.FilteringSelect"
                                                                                                    name="physicalStateId"
                                                                                                    id="physicalStateId"
                                                                                                    autocomplete="false"
                                                                                                    required="false"
                                                                                                    pageSize="15"
                                                                                                    value="<?php echo ($user->getPhysicalStateId() == "") ? "1000" : $user->getPhysicalStateId(); ?>">
                                                                                                    <?php
                                                                                                    for ($i = 0 ; $i < count($states) ; $i++) {
                                                                                                        $state = $states[$i];
                                                                                                    ?>
                                                                                                        <option value="<?php echo $state->getStateId(); ?>"><?php echo $state->getStateName(); ?></option>
                                                                                                    <?php
                                                                                                    }
                                                                                                    ?>
                                                                                            </select>
                                                                                        </td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:70px;"
                                                                                                   type="text"
                                                                                                   name="physicalZipCode"
                                                                                                   id="physicalZipCode"
                                                                                                   value="<?php echo (($user->getPhysicalZipCode() == "0")) ? "00000" : $user->getPhysicalZipCode(); ?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[0-9][0-9][0-9][0-9][0-9]"
                                                                                                   propercase="true"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="height:10px;"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;"></td>
                                                                        <td id="contactInformationLabel"
                                                                            style="vertical-align:top;">
                                                                            Contact Information:
                                                                        </td>
                                                                        <td style="padding-top:1px;padding-left:0px;"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-bottom:10px;vertical-align:top;padding-left:0px;padding:10px 10px 10px 10px;border:1px solid #AAAAAA;">
                                                                            <table border="0" cellpadding="0" cellspacing="0" style="font-family:Verdana;font-size:12px;font-weight:normal;width:100%;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="padding-right:3px;vertical-align:top;text-align:right;width:10px;"><span class="requiredSign">*</span></td>
                                                                                        <td id="telephoneLabel"
                                                                                            style="padding-bottom:2px;padding-top:0px;width:160px;">
                                                                                            Business Phone:
                                                                                        </td>
                                                                                        <td id="telephoneExtLabel"
                                                                                            colspan="2"
                                                                                            style="padding-bottom:2px;padding-top:0px;">
                                                                                            Ext.:
                                                                                        </td>
                                                                                        <td style="width:400px;"></td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;padding-bottom:10px;padding-bottom:10px;">
                                                                                            <input style="width:140px"
                                                                                                   type="text"
                                                                                                   name="telephone"
                                                                                                   id="telephone"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   maxLength="14"
                                                                                                   regExp="[\(][\0-9][\0-9][\0-9][\)][ ][\0-9][\0-9][\0-9][\-][\0-9][\0-9][\0-9][\0-9]"
                                                                                                   propercase="true"
                                                                                                   required="false"
                                                                                                   value="<?php echo $user->getTelephone();?>" />
                                                                                        </td>
                                                                                        <td colspan="3"
                                                                                            style="padding-bottom:0px;padding-top:0px;padding-bottom:10px;padding-bottom:10px;">
                                                                                            <input style="width:80px"
                                                                                                   type="text"
                                                                                                   name="telephoneExt"
                                                                                                   id="telephoneExt"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   maxLength="6"
                                                                                                   regExp="[\0-9]+"
                                                                                                   propercase="true"
                                                                                                   required="false"
                                                                                                   value="<?php echo $user->getTelephoneExt();?>" />
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="padding-right:3px;vertical-align:top;text-align:right;"></td>
                                                                                        <td colspan="4"
                                                                                            style="padding-bottom:2px;padding-top:0px;">
                                                                                            Cell Phone:
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="5"
                                                                                            style="padding-bottom:0px;padding-top:0px;padding-bottom:10px;">
                                                                                            <input style="width:140px"
                                                                                                   type="text"
                                                                                                   name="cellphone"
                                                                                                   id="cellphone"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   maxLength="14"
                                                                                                   regExp="[\(][\0-9][\0-9][\0-9][\)][ ][\0-9][\0-9][\0-9][\-][\0-9][\0-9][\0-9][\0-9]"
                                                                                                   propercase="true"
                                                                                                   required="false"
                                                                                                   value="<?php echo $user->getCellphone();?>" />
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="padding-right:3px;vertical-align:top;text-align:right;"><span class="requiredSign">*</span></td>
                                                                                        <td id="emailLabel"
                                                                                            colspan="4"
                                                                                            style="padding-bottom:2px;padding-top:0px;">
                                                                                            Email Address:
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="5"
                                                                                            style="padding-bottom:0px;padding-top:0px;padding-bottom:10px;">
                                                                                            <table border="0"
                                                                                                   cellpadding="0"
                                                                                                   cellspacing="0"
                                                                                                   style="font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                                <tbody>
                                                                                                    <tr>
                                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                                            <input style="width:310px;"
                                                                                                                   type="text"
                                                                                                                   name="email"
                                                                                                                   id="email"
                                                                                                                   value="<?php echo $user->getProfileEmail();?>"
                                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                                   maxLength="50"
                                                                                                                   lowercase="true"
                                                                                                                   regExp="[\a-zA-Z0-9\-\.\_\#]+[\@][a-zA-Z0-9\-\.\_\#]+[\.][a-zA-Z0-9\-\.\_\#]+"
                                                                                                                   required="false" />
                                                                                                        </td>
                                                                                                        <td style="padding-left:10px;padding-bottom:0px;padding-top:0px;">
                                                                                                            <a href="javascript:profileEmailSameAsOnAccount();" style="color:#666666;font-size:9px;font-weight:normal;">(Same as Account Settings)</a>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </tbody>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td rowspan="2" style="padding-right:3px;vertical-align:top;text-align:right;"></td>
                                                                                        <td colspan="4"
                                                                                            style="padding-bottom:2px;padding-top:0px;">
                                                                                            Website Address:
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td colspan="4"
                                                                                            style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input style="width:580px;"
                                                                                                   type="text"
                                                                                                   name="website"
                                                                                                   id="website"
                                                                                                   value="<?php echo $user->getWebsite();?>"
                                                                                                   dojoType="dijit.form.ValidationTextBox"
                                                                                                   trim="true"
                                                                                                   regExp="[\a-zA-Z0-9\.\-\#\_\/\%\&\?\=\:\\]+"
                                                                                                   propercase="false"
                                                                                                   required="false" />
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;padding-top:10px;"><span class="requiredSign">*</span></td>
                                                                        <td id="servicesOfferedLabel"
                                                                            colspan="2"
                                                                            style="padding-bottom:0px;padding-top:10px;">
                                                                            Services Offered:
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="vertical-align:top;padding:10px 10px 5px 10px;border:1px solid #AAAAAA;">
                                                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:5px;padding-top:0px;">
                                                                                            <table border="0"
                                                                                                   cellpadding="0"
                                                                                                   cellspacing="0"
                                                                                                   style="width:100%;font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                                <tbody>
                                                                                                    <tr>
                                                                                                        <td colspan="6" style="padding-bottom:2px;height:10px;font-weight:normal;">
                                                                                                            Please use the drop down box below to select at least one category that best represents the school safety and security services you offer.
                                                                                                            You may add multiple categories to your list if your services apply to more than one of the service categories.
                                                                                                            For each service category you add to the list, select the month and year you started providing that particular service.
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="6" style="height:15px;">
                                                                                                            <div id="serviceProvidedListErrorMessage"></div>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="6" style="padding-top:2px;padding-bottom:2px;">
                                                                                                            Service Category:
                                                                                                            <a href="javascript:showDefineServiceCategoriesDialog();"
                                                                                                               style="color:#666666;font-size:9px;font-weight:normal;">(Define Categories)</a>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="6">
                                                                                                            <input id="servicesProvidedSelectArea" />
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="6" style="height:5px;"></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="6">
                                                                                                            <table border="0"
                                                                                                                   cellpadding="0"
                                                                                                                   cellspacing="0"
                                                                                                                   style="width:100%;font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                                                <tbody>
                                                                                                                <tr>
                                                                                                                    <td style="white-space:nowrap;width:110px;">Serving Since:</td>
                                                                                                                    <td style="width:140px;">
                                                                                                                        <select style="width:120px;"
                                                                                                                                dojoType="dijit.form.FilteringSelect"
                                                                                                                                name="servingSinceMonth"
                                                                                                                                id="servingSinceMonth"
                                                                                                                                autocomplete="false"
                                                                                                                                required="false"
                                                                                                                                disabled="true"
                                                                                                                                pageSize="13"
                                                                                                                                value="1000">
                                                                                                                            <option value="1">January</option>
                                                                                                                            <option value="2">February</option>
                                                                                                                            <option value="3">March</option>
                                                                                                                            <option value="4">April</option>
                                                                                                                            <option value="5">May</option>
                                                                                                                            <option value="6">June</option>
                                                                                                                            <option value="7">July</option>
                                                                                                                            <option value="8">August</option>
                                                                                                                            <option value="9">September</option>
                                                                                                                            <option value="10">October</option>
                                                                                                                            <option value="11">November</option>
                                                                                                                            <option value="12">December</option>
                                                                                                                        </select>
                                                                                                                    </td>
                                                                                                                    <td>
                                                                                                                        <input style="width:70px;"
                                                                                                                               type="text"
                                                                                                                               name="servingSinceYear"
                                                                                                                               id="servingSinceYear"
                                                                                                                               value=""
                                                                                                                               dojoType="dijit.form.NumberTextBox"
                                                                                                                               trim="true"
                                                                                                                               constraints="{min:1900, max:<?php echo date("Y"); ?>, places:0}"
                                                                                                                               propercase="true"
                                                                                                                               required="false"
                                                                                                                               disabled="true" />
                                                                                                                    </td>
                                                                                                                    <td style="font-weight:normal;text-align:right;"></td>
                                                                                                                    <td style="font-weight:normal;text-align:right;"></td>
                                                                                                                    <td style="text-align:right;">
                                                                                                                        <input type="hidden" id="userServicesProvidedString" name="userServicesProvidedString" value="" />
                                                                                                                        <button type="button"
                                                                                                                                id="addServiceProvided"
                                                                                                                                name="addServiceProvided"
                                                                                                                                dojoType="dijit.form.Button"
                                                                                                                                disabled="true"
                                                                                                                                iconClass="addIcon"
                                                                                                                                onclick="addServiceProvided()">
                                                                                                                            Confirm Service
                                                                                                                        </button>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td style="white-space:nowrap;"></td>
                                                                                                                    <td style="font-weight:normal;padding-left:2px;font-size:9px;">Month Started</td>
                                                                                                                    <td style="font-weight:normal;padding-left:2px;font-size:9px;">Year Started</td>
                                                                                                                    <td style="font-weight:normal;text-align:right;"></td>
                                                                                                                    <td style="font-weight:normal;text-align:right;"></td>
                                                                                                                    <td style="text-align:right;"></td>
                                                                                                                </tr>
                                                                                                                </tbody>
                                                                                                            </table>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="6" style="height:5px;"></td>
                                                                                                    </tr>
                                                                                                </tbody>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="height:200px;">
                                                                                            <table dojoType="dojox.grid.DataGrid"
                                                                                               store="consultantServicesProvidedStore"
                                                                                               query="{ id: '*' }"
                                                                                               jsid="consultantServicesProvidedGrid"
                                                                                               id="consultantServicesProvidedGrid"
                                                                                               rowsPerPage="20"
                                                                                               rowSelector="20px">
                                                                                            <thead>
                                                                                                <tr>
                                                                                                    <th field="service" width="450">
                                                                                                        <span style="font-family:Verdana;font-size:12px;">
                                                                                                            Service
                                                                                                        </span>
                                                                                                    </th>
                                                                                                    <th field="servingSince" width="150">
                                                                                                        <span style="font-family:Verdana;font-size:12px;">
                                                                                                            Serving Since
                                                                                                        </span>
                                                                                                    </th>
                                                                                                </tr>
                                                                                            </thead>
                                                                                        </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="text-align:right;padding-top:5px;">
                                                                                            <div style="float:left;width:710px;">
                                                                                                <div style="float:left;text-align:left;">
                                                                                                    <button type="button"
                                                                                                            dojoType="dijit.form.Button"
                                                                                                            iconClass="emailIcon"
                                                                                                            onclick="suggestServiceCategoryToBeAdded()">
                                                                                                        Suggest Category to be Added
                                                                                                    </button>
                                                                                                </div>
                                                                                                <div style="float:right;text-align:right;">
                                                                                                    <button type="button"
                                                                                                            dojoType="dijit.form.Button"
                                                                                                            iconClass="deleteIcon"
                                                                                                            onclick="deleteServiceProvidedSelected()">
                                                                                                        Delete Service Selected
                                                                                                    </button>
                                                                                                </div>
                                                                                            </div>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="text-align:right;padding-top:5px;">
                                                                                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                                                                                <tbody>
                                                                                                    <tr>
                                                                                                        <td style="padding-bottom:2px;height:10px;font-family:Verdana;font-size:12px;">
                                                                                                            Description of Services Offered:
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td style="padding-bottom:2px;">
                                                                                                            <textarea dojoType="dijit.form.Textarea"
                                                                                                                      id="servicesOfferedDescription"
                                                                                                                      name="servicesOfferedDescription"
                                                                                                                      style="width:100%;font-family:Verdana;font-size:12px;"
                                                                                                                      onkeyup="return verifyServicesOfferedDescription();"><?php echo $user->getServicesOfferedDescription();?></textarea>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td align="right">
                                                                                                            <span class="note4"
                                                                                                                  id="servicesOfferedDescriptionCharCounter"
                                                                                                                  style="color:#501214;font-weight:bold;font-family:Verdana;font-size:12px;">
                                                                                                                (1000 characters left)
                                                                                                            </span>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </tbody>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="3" style="vertical-align:top;padding-top:15px;"><span class="requiredSign">*</span></td>
                                                                        <td id="clienteleLabel"
                                                                            colspan="2"
                                                                            style="padding-bottom:0px;padding-top:15px;">
                                                                            Please select the category(ies) that best represents your clientele for the school safety and security services you offer.
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-bottom:2px;height:10px;">
                                                                            <div id="clienteleIndicatorErrorMessage"></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-left:100px;vertical-align:top;padding-bottom:10px;">
                                                                            <table border="0" cellpadding="0" cellspacing="0" style="font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input id="k12ClienteleIndicator"
                                                                                                   dojotype="dijit.form.CheckBox"
                                                                                                   name="k12ClienteleIndicator"
                                                                                                   <?php echo ($user->getK12ClienteleIndicator() == "1") ? 'checked="true"' : ""; ?>
                                                                                                   value="1"
                                                                                                   type="checkbox" />
                                                                                            <label for="k12ClienteleIndicator" style="font-family:Verdana;font-size:12px;font-weight:normal;"> K-12 (e.g., ISDs, private schools)</label>
                                                                                        </td>
                                                                                        <td style="width:50px;"></td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input id="higherEducationClienteleIndicator"
                                                                                                   dojotype="dijit.form.CheckBox"
                                                                                                   name="higherEducationClienteleIndicator"
                                                                                                   <?php echo ($user->getHigherEducationClienteleIndicator() == "1") ? 'checked="true"' : ""; ?>
                                                                                                   value="1"
                                                                                                   type="checkbox" />
                                                                                            <label for="higherEducationClienteleIndicator" style="font-family:Verdana;font-size:12px;font-weight:normal;"> Higher Education (e.g., junior colleges)</label>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="3" style="vertical-align:top;height:5px;">
                                                                            <div style="border-top:1px solid #AAAAAA;"></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;padding-top:5px;"><span class="requiredSign">*</span></td>
                                                                        <td id="backgroundLabel"
                                                                            colspan="2"
                                                                            style="padding-bottom:0px;padding-top:5px;">
                                                                            In 1000 characters or less, please list any background you have that directly relates to the school safety and security services you offer.
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="vertical-align:top;padding-bottom:10px;">
                                                                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:2px;height:10px;">
                                                                                            <div id="backgroundDescriptionErrorMessage"></div>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:2px;">
                                                                                            <textarea dojoType="dijit.form.Textarea"
                                                                                                      id="backgroundDescription"
                                                                                                      name="backgroundDescription"
                                                                                                      style="width:100%;font-family:Verdana;font-size:12px;"
                                                                                                      onkeyup="return verifyBackgroundDescription();"><?php echo $user->getBackgroundDescription();?></textarea>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="right">
                                                                                            <span class="note4"
                                                                                                  id="backgroundDescriptionCharCounter"
                                                                                                  style="color:#501214;font-weight:bold;font-family:Verdana;font-size:12px;">
                                                                                                (1000 characters left)
                                                                                            </span>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;"><span class="requiredSign">*</span></td>
                                                                        <td id="educationLabel"
                                                                            colspan="2"
                                                                            style="padding-bottom:0px;padding-top:0px;">
                                                                            In 1000 characters or less, please list any education, certifications, or coursework you have completed that directly relates to the school safety and security services you offer.
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="vertical-align:top;padding-bottom:10px;">
                                                                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:2px;height:10px;">
                                                                                            <div id="educationDescriptionErrorMessage"></div>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:2px;">
                                                                                            <textarea dojoType="dijit.form.Textarea"
                                                                                                      id="educationDescription"
                                                                                                      name="educationDescription"
                                                                                                      style="width:100%;font-family:Verdana;font-size:12px;"
                                                                                                      onkeyup="return verifyEducationDescription();"><?php echo $user->getEducationDescription();?></textarea>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="right">
                                                                                            <span class="note4" id="educationDescriptionCharCounter"
                                                                                                  style="color:#501214;font-weight:bold;font-family:Verdana;font-size:12px;">
                                                                                                (1000 characters left)
                                                                                            </span>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="2" style="vertical-align:top;"><span class="requiredSign">*</span></td>
                                                                        <td id="experienceLabel"
                                                                            colspan="2"
                                                                            style="padding-bottom:0px;padding-top:0px;">
                                                                            In 1000 characters or less, please list any experience you have that directly relates to the school safety and security services you offer.
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="vertical-align:top;padding-bottom:10px;">
                                                                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:2px;height:10px;">
                                                                                            <div id="experienceDescriptionErrorMessage"></div>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:2px;">
                                                                                            <textarea dojoType="dijit.form.Textarea"
                                                                                                      id="experienceDescription"
                                                                                                      name="experienceDescription"
                                                                                                      style="width:100%;font-family:Verdana;font-size:12px;"
                                                                                                      onkeyup="return verifyExperienceDescription();"><?php echo $user->getExperienceDescription();?></textarea>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="right">
                                                                                            <span class="note4" id="experienceDescriptionCharCounter"
                                                                                                  style="color:#501214;font-weight:bold;font-family:Verdana;font-size:12px;">
                                                                                                (1000 characters left)
                                                                                            </span>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>

                                                                    <tr>
                                                                        <td colspan="3" style="vertical-align:top;height:5px;">
                                                                            <div style="border-top:1px solid #AAAAAA;"></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td rowspan="3" style="vertical-align:top;padding-top:5px;"><span class="requiredSign">*</span></td>
                                                                        <td id="complaintPendingLitigationLabel"
                                                                            colspan="2"
                                                                            style="padding-bottom:0px;padding-top:5px;">
                                                                            Please check if you have received any complaints or have any pending litigation related to the school safety and security services you provide.
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-bottom:2px;height:10px;">
                                                                            <div id="complaintPendingLitigationIndicatorErrorMessage"></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-left:170px;padding-top:5px;padding-bottom:20px;vertical-align:top;">
                                                                            <table border="0" cellpadding="0" cellspacing="0" style="font-family:Verdana;font-size:12px;font-weight:normal;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input id="complaintIndicator"
                                                                                                   dojotype="dijit.form.CheckBox"
                                                                                                   name="complaintIndicator"
                                                                                                   <?php echo ($user->getComplaintIndicator() == "1") ? 'checked="true"' : ""; ?>
                                                                                                   value="1"
                                                                                                   type="checkbox" />
                                                                                            <label for="complaintIndicator" style="font-family:Verdana;font-size:12px;font-weight:normal;"> Complaints</label>
                                                                                        </td>
                                                                                        <td style="width:50px;"></td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input id="pendingLitigationIndicator"
                                                                                                   dojotype="dijit.form.CheckBox"
                                                                                                   name="pendingLitigationIndicator"
                                                                                                   <?php echo ($user->getPendingLitigationIndicator() == "1") ? 'checked="true"' : ""; ?>
                                                                                                   value="1"
                                                                                                   type="checkbox" />
                                                                                            <label for="pendingLitigationIndicator" style="font-family:Verdana;font-size:12px;font-weight:normal;"> Pending Litigation</label>
                                                                                        </td>
                                                                                        <td style="width:50px;"></td>
                                                                                        <td style="padding-bottom:0px;padding-top:0px;">
                                                                                            <input id="noneIndicator"
                                                                                                   dojotype="dijit.form.CheckBox"
                                                                                                   name="noneIndicator"
                                                                                                   <?php echo ($user->getNoneIndicator() == "1") ? 'checked="true"' : ""; ?>
                                                                                                   value="1"
                                                                                                   type="checkbox"
                                                                                                   onclick="manageNoneIndicator();" />
                                                                                            <label for="noneIndicator" style="font-family:Verdana;font-size:12px;font-weight:normal;"> None</label>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="3" style="text-align:right;padding-bottom:0px;border-top:1px solid #AAAAAA;padding-top:10px;">
                                                                            <input type="hidden"
                                                                                   id="currentProfileSubmittedIndicator"
                                                                                   name="currentProfileSubmittedIndicator"
                                                                                   value="<?php echo $user->getProfileSubmittedIndicator() ?>" />
                                                                            <input type="hidden"
                                                                                   id="profileSubmittedIndicator"
                                                                                   name="profileSubmittedIndicator"
                                                                                   value="<?php echo $user->getProfileSubmittedIndicator() ?>" />
                                                                            <button dojoType=dijit.form.Button
                                                                                    type="reset"
                                                                                    name="resetUserProfileForm"
                                                                                    id="resetUserProfileForm"
                                                                                    iconClass="clearIcon"
                                                                                    onclick="">
                                                                                Clear Changes to Profile
                                                                            </button>
                                                                            <button dojoType=dijit.form.Button
                                                                                    type="button"
                                                                                    name="previewUserProfileForm"
                                                                                    id="previewUserProfileForm"
                                                                                    iconClass="searchIcon"
                                                                                    onclick="showConsultantInformationDetailPreview();">
                                                                                Preview My Profile
                                                                            </button>
                                                                            <button dojoType=dijit.form.Button
                                                                                    type="button"
                                                                                    name="submitUserProfileForm"
                                                                                    id="submitUserProfileForm"
                                                                                    iconClass="saveIcon"
                                                                                    onclick="startUpdateUserProfileProcess()">
                                                                                Save Profile
                                                                            </button>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </form>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="top">
                        <?php include "includes/mainFooterInclude.php"; ?>
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>
